package org.medicine.service;

import org.medicine.base.DAO;
import org.medicine.model.Medicine;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-12-12
 * Time: 下午12:24
 * To change this template use File | Settings | File Templates.
 */
public interface MedicineService extends DAO {

    /**
     * 查看全部药品
     *
     * @return List<Medicine>
     */
    public List<Medicine> allMedicine();


    /**
     * 查找药品
     *
     * @param medicineName 药品名称    y
     * @return Medicine
     */
    public Medicine findMedicineByName(String medicineName);

    /**
     * 查找相关属性的药品
     *
     * @param value 相关属性
     * @return List<Medicine>
     */
    public List<Medicine> findMedicines(String value);


    /**
     * 删除全部药品
     */
    public void deleteAllMedicine();

}
